
var WindSelector = new Object();

WindSelector.createView = function(model) {
	var container = new WindView;
	container.setCssClass("WindSelector");
	
	var text = WindText.createView();
	container.addView(text);
	
	var button = WindButton.createView();
	button.setText("?");
	
	if(model!=null && model.getButtonOnClick!=null) {
		button.onClick = model.getButtonOnClick;
	}
	
	container.addView(button);
	
	return container;
}